"""
author：wang tian cheng
date: 2020/10/25
project: ludingji
"""
# 一
# str1='abcba'
# if str1==str1[::-1]:
#     print("这是回文")
# else:
#     print("这不是回文")

#二
# dict1=dict()
# list1=[1,1,2,2,2]
# lenght=len(list1)//2+1
# for i in list1:
#     if dict1.get(i)==None:
#         dict1[i]=1
#     else:
#         dict1[i]+=1
# for j,k in dict1.items():
#     if k>=lenght:
#         print("出现的过半元素为：",j)
#
#         break
# else:
#     print("没有这个数")

#三
# hui=input("输入想变成最小回文的数:")
# hui1=hui[::-1]
# for i,j in enumerate(hui1):
#     if hui.startswith(hui1[i]):
#         a=hui+hui1[i+1:len(hui1)]
#         print()
#         if a==a[::-1] and hui!=hui[::-1]:
#             print(a)
#         elif hui[i:len(hui)]==hui1[0:i]:
#             a = hui+hui1[i:len(hui1)]
#             print(a)
#         else:
#             a=hui+hui1[1:i+1]
#             print(a)
#         break



#四
# import random
# name1=["wang","peng","tang","feng","zhang","xu","li","liang","wen"]
# name2=[]
# random.shuffle(name1)
# name2=name1[::-1]
# print(name1)
# print(name2)
# #tup=[]
# while name1:
#     first=name1.pop()
#     second=name2.pop()
#     if first==second:
#         name1.insert(0,first)
#         name2.append(second)
#     else:
#         print("送礼人:", first, end=" ")
#         print("收礼人为:", second)
        #tup.append((first,second))
#print(tup)

# import random
# send_lst = ['员工a','员工b','员工c','员工d','员工e','员工f']
# get_lst = send_lst[:]
# for i in send_lst
#     flag=0
#     if i in get_list:
#         flag=1
#         get_lst.remove(i)
#     get= random.choice(get_lst)
#     get_lst.remove(get)
#     if flag==1:
#         get_lst.append(i)
#     print(f"{i}")








